package com.springboot.entity;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.CommandLineRunner;

import javax.annotation.PostConstruct;

/**
 * @author yexi
 */
public class NormalClass implements ApplicationRunner, CommandLineRunner {

    @PostConstruct
    public void init() {
        System.out.println("由于该类并不会注入,所以该注解无效");
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("由于该类并不会注入,所以该段代码不会执行");
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println("由于该类并不会注入,所以该段代码不会执行");
    }
}
